<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Mapache: Referencia de la Clase Thread</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generado por Doxygen 1.7.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "../../search",false,'Buscar');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../Mapache.png"></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Mapache&#160;<span id="projectnumber">v1.0.0</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Página&#160;principal</span></a></li>
      <li class="current"><a href="../../annotated.html"><span>Clases</span></a></li>
      <li><a href="../../files.html"><span>Archivos</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Buscar" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../annotated.html"><span>Lista&#160;de&#160;clases</span></a></li>
      <li><a href="../../classes.html"><span>Índice&#160;de&#160;clases</span></a></li>
      <li><a href="../../inherits.html"><span>Jerarquía&#160;de&#160;la&#160;clase</span></a></li>
      <li><a href="../../functions.html"><span>Miembros&#160;de&#160;las&#160;clases</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('d0/d51/classThread.html','../../');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Métodos públicos</a> &#124;
<a href="#pro-methods">Métodos protegidos</a> &#124;
<a href="#pri-static-methods">Métodos privados estáticos</a> &#124;
<a href="#pri-attribs">Atributos privados</a>  </div>
  <div class="headertitle">
<h1>Referencia de la Clase Thread</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Thread" -->
<p><code>#include &lt;Thread.h&gt;</code></p>
<div class="dynheader">
Diagrama de herencias de Thread</div>
<div class="dyncontent">
<div class="center"><img src="../../d8/d6b/classThread__inherit__graph.png" border="0" usemap="#Thread_inherit__map" alt="Inheritance graph"/></div>
<map name="Thread_inherit__map" id="Thread_inherit__map">
<area shape="rect" id="node3" href="../../dd/d69/classManejadorClienteHTTP.html" title="ManejadorClienteHTTP" alt="" coords="5,83,163,112"/><area shape="rect" id="node5" href="../../da/db6/classServidorHttp.html" title="ServidorHttp" alt="" coords="187,83,280,112"/><area shape="rect" id="node7" href="../../dd/d84/classVerificadorTimeOut.html" title="VerificadorTimeOut" alt="" coords="304,83,437,112"/></map>
<center><span class="legend">[<a target="top" href="../../graph_legend.html">significado de colores y flechas</a>]</span></center></div>

<p><a href="../../d2/d19/classThread-members.html">Lista de todos los miembros.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Métodos públicos</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d51/classThread.html#a95c703fb8f2f27cb64f475a8c940864a">Thread</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d51/classThread.html#a1f53ee62bd30a7924186ef26150ce262">start</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d51/classThread.html#a4d9d788e98388a3217831a9046709deb">join</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d51/classThread.html#a6ccc66ed9a465ab7e4c8ae9526be86a2">vivo</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d51/classThread.html#a7eb2b0cd153514e0678540f019583c98">morir</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Métodos protegidos</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d51/classThread.html#aae90dfabab3e1776cf01a26e7ee3a620">run</a> ()=0</td></tr>
<tr><td colspan="2"><h2><a name="pri-static-methods"></a>
Métodos privados estáticos</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d51/classThread.html#a9f081cd0e7611680ce792b834d14189a">init</a> (void *data)</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Atributos privados</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">pthread_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d51/classThread.html#af1ffce225c37b958b04c0ec50765ab20">h</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d51/classThread.html#a3c571bfe0f7a170ccc4b9ff9c9181734">vida</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Descripción detallada</h2>
<div class="textblock"><p>Clase abstracta utilizada para abstraer los sockets de c. Para utilizarla se deberán crear clases derivadas de esta que implementen el metodo void <a class="el" href="../../d0/d51/classThread.html#aae90dfabab3e1776cf01a26e7ee3a620">run()</a>; </p>
</div><hr/><h2>Documentación del constructor y destructor</h2>
<a class="anchor" id="a95c703fb8f2f27cb64f475a8c940864a"></a><!-- doxytag: member="Thread::Thread" ref="a95c703fb8f2f27cb64f475a8c940864a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Thread::Thread </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructor </p>

</div>
</div>
<hr/><h2>Documentación de las funciones miembro</h2>
<a class="anchor" id="a9f081cd0e7611680ce792b834d14189a"></a><!-- doxytag: member="Thread::init" ref="a9f081cd0e7611680ce792b834d14189a" args="(void *data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void* Thread::init </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td><code> [inline, static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><div class="dynheader">
Gráfico de llamadas para esta función:</div>
<div class="dyncontent">
<div class="center"><img src="../../d0/d51/classThread_a9f081cd0e7611680ce792b834d14189a_cgraph.png" border="0" usemap="#d0/d51/classThread_a9f081cd0e7611680ce792b834d14189a_cgraph" alt=""/></div>
<map name="d0/d51/classThread_a9f081cd0e7611680ce792b834d14189a_cgraph" id="d0/d51/classThread_a9f081cd0e7611680ce792b834d14189a_cgraph">
<area shape="rect" id="node3" href="../../d0/d51/classThread.html#aae90dfabab3e1776cf01a26e7ee3a620" title="Thread::run" alt="" coords="141,5,229,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a4d9d788e98388a3217831a9046709deb"></a><!-- doxytag: member="Thread::join" ref="a4d9d788e98388a3217831a9046709deb" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Thread::join </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Joinea el hilo. </p>

</div>
</div>
<a class="anchor" id="a7eb2b0cd153514e0678540f019583c98"></a><!-- doxytag: member="Thread::morir" ref="a7eb2b0cd153514e0678540f019583c98" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Thread::morir </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Hace que el hilo cambie su estado a muerto. </p>

</div>
</div>
<a class="anchor" id="aae90dfabab3e1776cf01a26e7ee3a620"></a><!-- doxytag: member="Thread::run" ref="aae90dfabab3e1776cf01a26e7ee3a620" args="()=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Thread::run </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected, pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Implementado en <a class="el" href="../../dd/d69/classManejadorClienteHTTP.html#af6bcdc73e23c8f0d04c3f092b980e67f">ManejadorClienteHTTP</a>, <a class="el" href="../../da/db6/classServidorHttp.html#a4d0fe437a61e7edfdad6437bb9da9a65">ServidorHttp</a> y <a class="el" href="../../dd/d84/classVerificadorTimeOut.html#ab627ad0aeb6139ceaee65ae36b462f18">VerificadorTimeOut</a>.</p>

</div>
</div>
<a class="anchor" id="a1f53ee62bd30a7924186ef26150ce262"></a><!-- doxytag: member="Thread::start" ref="a1f53ee62bd30a7924186ef26150ce262" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Thread::start </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Empieza a correr el hilo </p>

<p><div class="dynheader">
Gráfico de llamadas para esta función:</div>
<div class="dyncontent">
<div class="center"><img src="../../d0/d51/classThread_a1f53ee62bd30a7924186ef26150ce262_cgraph.png" border="0" usemap="#d0/d51/classThread_a1f53ee62bd30a7924186ef26150ce262_cgraph" alt=""/></div>
<map name="d0/d51/classThread_a1f53ee62bd30a7924186ef26150ce262_cgraph" id="d0/d51/classThread_a1f53ee62bd30a7924186ef26150ce262_cgraph">
<area shape="rect" id="node3" href="../../d0/d51/classThread.html#a9f081cd0e7611680ce792b834d14189a" title="Thread::init" alt="" coords="151,5,236,35"/><area shape="rect" id="node5" href="../../d0/d51/classThread.html#aae90dfabab3e1776cf01a26e7ee3a620" title="Thread::run" alt="" coords="285,5,373,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a6ccc66ed9a465ab7e4c8ae9526be86a2"></a><!-- doxytag: member="Thread::vivo" ref="a6ccc66ed9a465ab7e4c8ae9526be86a2" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Thread::vivo </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Devuelve el estado del hilo </p>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>estado </dd></dl>

</div>
</div>
<hr/><h2>Documentación de los datos miembro</h2>
<a class="anchor" id="af1ffce225c37b958b04c0ec50765ab20"></a><!-- doxytag: member="Thread::h" ref="af1ffce225c37b958b04c0ec50765ab20" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pthread_t <a class="el" href="../../d0/d51/classThread.html#af1ffce225c37b958b04c0ec50765ab20">Thread::h</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a3c571bfe0f7a170ccc4b9ff9c9181734"></a><!-- doxytag: member="Thread::vida" ref="a3c571bfe0f7a170ccc4b9ff9c9181734" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="../../d0/d51/classThread.html#a3c571bfe0f7a170ccc4b9ff9c9181734">Thread::vida</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/>La documentación para esta clase fue generada a partir de los siguientes ficheros:<ul>
<li>Mapache/src/common/threads/<a class="el" href="../../d0/d80/Thread_8h.html">Thread.h</a></li>
<li>Mapache/src/common/threads/<a class="el" href="../../da/de4/Thread_8cpp.html">Thread.cpp</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="../../d0/d51/classThread.html">Thread</a>      </li>
      <li class="footer">Generado el Domingo, 20 de Noviembre de 2011 00:38:06 para Mapache por&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.7.3 </li>
    </ul>
  </div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Todo</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Clases</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Archivos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funciones</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>&apos;defines&apos;</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


</body>
</html>
